<div class="uk-layui-form">
	<form class="layui-form uk-form" action="/apps/xiaoe/scene/type/update.html">
		<input type="hidden" name="id" value="${sceneType.id!''}">
		<div class="layui-form-item">
			<label class="layui-form-label">分类名称：</label>
			<div class="layui-input-inline">
				<input type="text" name="name" required lay-verify="required" value="${sceneType.name!''}"
					placeholder="请输入分类名称" autocomplete="off" class="layui-input">
			</div>
		</div>
		<#if areaList?? && areaList?size gt 0>
		<div class="layui-form-item" id="area">
			<label class="layui-form-label">启用地区：</label>
			<div class="layui-input-block">
				<#list areaList as area>
				<input type="checkbox" name="area" title="${area.name!''}" <#if sceneType.area?? && sceneType.area?index_of(area.id) gte 0>checked="checked"</#if> value="${area.id!''}" lay-skin="primary" style="margin-top:0px;">
				</#list>
			</div>
			<div class="layui-input-block" style="color:red;">
				注意：无勾选为全部地区
			</div>
		</div>
		</#if>
		<div class="layui-form-button">
			<div class="layui-button-block">
				<button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
			</div>
		</div>
	</form>
</div>
 
<script>
//Demo
layui.use('form', function(){
  var form = layui.form;
  form.render(); //更新全部
});
</script>